let array=[];

for(let i=2;i<=1000;i++){
	let flog=true;
	for(let j=2;j<i;j++){
		if(i%j==0){
			flog=false;
		}
	}
	if(flog==true){
		array.push(i);
	}
}
console.log(array);
let str = '' ; 
for( let x = 0 ; x < array.length ; x++ ){
	let prime = array[x ];

	str = str + prime + '\t' ; 
	
	if( ( x + 1 ) % 10 == 0 ) {
		str = str + '\n' ; 
	}
}


console.log( str )
let array2=[];
for(let y=1900;y<=2100;y++){
	let years=true;
	if(y%4==0&&y%100!=0||y%400==0){
		years=true;
		array2.push(y);
	}
	
}
console.log(array2);
let now=new Date();
console.log(now);
let year=now.getFullYear();
console.log(year);

